package com.lin.server.impl;

import com.lin.dataobject.UpdateLog;
import com.lin.repository.UpdateLogRepository;
import com.lin.server.UpdateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/9/25.
 */
@Service
public class UpdateLogServiceImpl implements UpdateLogService {
    @Autowired
    private UpdateLogRepository repository;
    @Override
    public List<UpdateLog> findAll() {
        return repository.findAll();
    }

    @Override
    public List<UpdateLog> findAllOrder() {
        return repository.findAllByOrderByCreateTimeDesc();
    }
}
